<?php if( $calendar->getIsPersonal() == 1 ):?>
    <?php echo __('Personal'); ?>
<?php elseif($calendar->getUserRoles() == ''): ?>
    <?php echo __('Public'); ?>
<?php else: ?>
	<?php foreach( $arr as $val ): ?>
	    <?php echo $val; ?></br>
	<?php endforeach; ?>
<?php endif; ?>